export default [
    {
      path: '/index',
      name: 'index',
      meta:{title:"主页",permission_no:1},
      component: () => import('../views/Index.vue'),
      children:[
        {
            path: '/index/business',
            name: 'business',
            meta:{title:"出差申请",permission_no:11},
            component: () => import('../views/Index/Business.vue'),
        },
        {
            path: '/index/outside',
            name: 'outside',
            meta:{title:"外勤打卡",permission_no:12},
            component: () => import('../views/Index/Outside.vue'),
        },
        {
            path: '/index/leave',
            name: 'leave',
            meta:{title:"请假申请",permission_no:13},
            component: () => import('../views/Index/Leave.vue'),
        },
        {
            path: '/index/work',
            name: 'work',
            meta:{title:"加班申请",permission_no:14},
            component: () => import('../views/Index/Work.vue'),
        },
        {
            path:'/index',
            redirect:'/index/business'
        },
        {
            path: "*",
            component: () => import('../views/NotFound.vue')
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      meta:{title:"登陆"},
      component: () => import('../views/Login.vue')
    },
    {
      path: '/register',
      name: 'register',
      meta:{title:"注册",permission_no:2},
      component: () => import('../views/Register.vue')
    },
    {
        path:'/',
        redirect:'/index'
    },
    {
        path: "*",
        component: () => import('../views/NotFound.vue')
    }
]